<?php



namespace App\Services\Company\Models;


use App\Services\Member\Models\User;
use Illuminate\Database\Eloquent\Model;

class OrderRefund extends Model
{
    public const STATUS_DEFAULT = 1;
    public const STATUS_SUCCESS = 5;


    protected $table = 'order_refund';

    protected $fillable = [
        'order_id', 'user_id', 'payment', 'total_amount',
        'refund_no', 'amount', 'reason', 'is_local', 'status', 'success_at',
    ];

    public function order()
    {
        return $this->belongsTo(CompanyOrder::class, 'order_id');
    }

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id');
    }




}
